<%--
  Created by IntelliJ IDEA.
  User: evans
  Date: 2018/4/24
  Time: 下午11:59
  To change this template use File | Settings | File Templates.
--%>
<%@ page contentType="text/html;charset=UTF-8" language="java" %>
<div class="pop-mask"></div>
<script>
    $(function() {
        // 使用easyUI框架提供的form表单提交工具
        $('#loginForm').form({
                url : '${path}/archive/edit',
                onSubmit : function() {
                    var isValid = $(this).form('validate');
                    if (!isValid) {
                    }
                    return isValid;
                },
                success : function(result) {
                    result = $.parseJSON(result);
                    if (result.success) {

                    } else {
                        parent.$.messager.alert('错误', result.msg, 'error');
                    }
                }
            }
        );
    });

</script>
<div class="pop pop-login">
    <p class="login-title">会员登陆</p>
    <p class="login-title-tip">Log In</p>
    <form id="loginForm" action="/platform/login?user=${user}&time=${time}&auth=${auth}" method="post" >
        <input class="input-text user-name" type="text" name="mobile_phone" placeholder="用户名/手机/邮箱">
        <input class="input-text password" type="password" name="pwd" placeholder="密码">
        <div class="verification-code">
            <div class="l-captcha" data-site-key="cf9d6c798e0f89de8461386cd1def20e" data-width="100%"  data-callback="getResponse"></div>
        </div>
        <button class="login-submit log" type="submit">点击登陆</button>
    </form>
    <div class="register-forget">没有账号? 去
        <a href="#" onclick="myPop.showRegister();">注册</a>/
        <a href="#" onclick="myPop.showRecover();">忘记密码</a>
    </div>
</div>
<div class="pop pop-recover">
    <p class="login-title">找回密码</p>
    <p class="login-title-tip">Recover a password</p>
    <form action="">
        <input class="input-text user-name" type="text" placeholder="手机号">
        <input class="input-text password" type="password" placeholder="密码">
        <div class="sms-auth margin-t-10">
            <input class="input-text" type="password" placeholder="短信验证码">
            <a class="btn" href="javascript:;">获取验证码</a>
        </div>
        <div class="verification-code">
            <div class="l-captcha" data-site-key="cf9d6c798e0f89de8461386cd1def20e" data-width="100%"  data-callback="getResponse"></div>
        </div>
        <button class="login-submit log" type="submit">点击登陆</button>
    </form>
    <div class="register-forget">没有账号? 去
        <a href="#" onclick="myPop.showRegister();">注册</a>/
        <a href="#" onclick="myPop.showRecover();">忘记密码</a>
    </div>
</div>
<div class="pop pop-rigster">
    <p class="login-title">注册</p>
    <p class="login-title-tip">Rigster</p>
    <form action="">
        <input id="cellPhone" class="cellPhone input-text user-name" type="text" placeholder="手机号">
        <div class="sms-auth margin-t-10">
            <input class="input-text" type="password" placeholder="短信验证码">
            <a class="btn" href="javascript:;">获取验证码</a>
        </div>
        <div class="verification-code">
            <%--<img src="../../img/img_1.png" alt="">--%>
                <div class="l-captcha" data-site-key="95059ebc73a95c13d50ceb8e06939c94"></div>
                <%--<div class="l-captcha" data-site-key="cf9d6c798e0f89de8461386cd1def20e" data-width="100%" data-callback="getResponse"></div>--%>
        </div>
        <input id="password" class="input-text password" type="password" placeholder="请设置登录密码">
        <input id="confirmPassword" class="input-text password" type="password" placeholder="请确认登录密码">
        <%--<button class="login-submit" type="submit">注册</button>--%>
        <a class="login-submit registerBtn" href="javascript:;">注册</a>
    </form>
</div>